<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: edy
  Date: 2022/4/14
  Time: 7:08 下午
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>


<a href="${pageContext.request.contextPath}/user/addpage">添加</a>
<table border="1px">
    <tr>
        <th>id</th>
        <th>姓名</th>
        <th>年龄</th>
        <th>生日</th>
        <th>性别</th>
        <th>操作</th>
        <th>操作</th>
    </tr>

    <c:forEach items="${userList}" var="user">
        <tr>
            <td>${user.id}</td>
            <td>${user.name}</td>
            <td>${user.age}</td>
            <td>${user.birthday}</td>
            <td>${user.sex}</td>
            <td><a href="${pageContext.request.contextPath}/user/delete?id=${user.id}">删除</a></td>
            <td><a href="${pageContext.request.contextPath}/user/updatepage?id=${user.id}">修改</a></td>
        </tr>
    </c:forEach>

</table>


</body>
</html>
